﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="RateDetails.aspx.vb" Inherits="WebApplication1.RateDetails" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<link href="Styles/ratingStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <br />
<br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="SqlDataSource1"  CssClass="gv" >
        <Columns>
            <asp:BoundField DataField="Skincaretips" HeaderText="Skincaretips" 
                SortExpression="Skincaretips" />
            <asp:ImageField DataImageUrlField="Imagetips" HeaderText="Imageview">
                <ControlStyle Height="200px" Width="200px" />
            </asp:ImageField>
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="Like.aspx?ID={0}" HeaderText="Like" 
                Text="Like" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SkinConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:SkinConnectionString.ProviderName %>" 
        
        SelectCommand="SELECT [ID], [Skincaretips], [Imagetips], [skincare_fkid] FROM [tips] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
     <br />
    <br />
    <asp:Rating ID="Rating1" runat="server" WaitingStarCssClass="star" EmptyStarCssClass="star" FilledStarCssClass="star" StarCssClass="star">

    </asp:Rating>
    <br />
    <br />
    <asp:Button ID="Button1" runat="server" Text="SaveRatings" />
    <br />
    <br />
    <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" CssClass="gv" 
        DataSourceID="SqlDataSource3">
        <Columns>
            <asp:BoundField DataField="AverageRating" HeaderText="AverageRating" 
                SortExpression="AverageRating" ReadOnly="True" />
            <asp:BoundField DataField="Skincaretips" HeaderText="Skincaretips" 
                SortExpression="Skincaretips" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SkinConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:SkinConnectionString.ProviderName %>" 
        
        
        SelectCommand="SELECT [AverageRating], [Skincaretips], [tipsID] FROM [tipsQueryview] WHERE ([tipsID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="tipsID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CssClass="gv" 
        DataKeyNames="ID" DataSourceID="SqlDataSource2">
        <Columns>
            <asp:BoundField DataField="username" HeaderText="username" 
                SortExpression="username" />
            <asp:BoundField DataField="Feedback" HeaderText="Feedback" 
                SortExpression="Feedback" />
            <asp:BoundField DataField="comment" HeaderText="comment" 
                SortExpression="comment" />
        </Columns>
    </asp:GridView>

    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SkinConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:SkinConnectionString.ProviderName %>" 
        SelectCommand="SELECT [username], [Feedback], [comment], [tips_fkid], [ID] FROM [Feedback] WHERE ([tips_fkid] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="tips_fkid" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    Feedback&nbsp;&nbsp;&nbsp;       
        
        <asp:TextBox ID="f2" runat="server" Height="28px" Width="163px"></asp:TextBox>
        <br />
    <br />
 
        <asp:TextBox ID="f3" runat="server" Height="168px" style="margin-left: 0px" 
            TextMode="MultiLine" Width="424px"></asp:TextBox>
     <br />
    <br />
    <br />
        <asp:Button ID="comment" runat="server" Height="26px" Text="AddComment" 
            Width="100px" />
    <br />
    <br />
    <br />

</asp:Content>
